package com.itheima.service.mongo;

import com.itheima.domain.mongo.Movement;
import com.itheima.vo.PageBeanVo;

public interface MovementService {
    //发布动态
    void save(Movement movement);

    //查询指定用户的动态信息
    PageBeanVo findMovementByUserId(Long userId, Integer pageNum, Integer pageSize);

    //查询指定用户的好友动态信息
    PageBeanVo findFriendMovementByUserId(Long userId, Integer pageNum, Integer pageSize);

    //查询指定用户的推荐动态信息
    PageBeanVo findRecommendMovement(Long userId, Integer pageNum, Integer pageSize);

    //根据动态id查询动态详情(单个动态)
    Movement findMovementById(String movementId);
    //根据用户的id和动态的状态查询
    PageBeanVo findUserMovementList(Long uid, Integer stateInt, Integer pageNum, Integer pageSize);
    //更新动态状态
    void updateMovement(Movement movement);
}
